package com.treasure.mall.biz.dto.order;

import com.treasure.mall.biz.dto.BaseSaveDTO;
import com.treasure.mall.biz.entity.embeddable.ReceivingInfo;
import com.treasure.mall.zbq.common.ienum.order.OrderEnums;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author allan
 * @date 2019-10-17
 */
@Setter
@Getter
public class OrderSaveDTO implements BaseSaveDTO, Serializable {
    private static final long serialVersionUID = -9079847087498072911L;

    private Long userId;
    private ReceivingInfo receivingInfo;
    /**
     * 订单商品信息
     * goodsId:num,goodsId:num
     */
    private String[] productInfo;
    /**
     * 是否需要鉴定服务
     */
    private boolean needIdentify;
    /**
     * 余额抵扣金额
     */
    private BigDecimal deductBalance = BigDecimal.ZERO;
    /**
     * 订单类型
     */
    private OrderEnums.OrderType orderType;
    /**
     * 直播场次id
     */
    private String liveSessionId;
    /**
     * 用户留言
     */
    private String userMemo;
    /**
     * 拍卖id
     */
    private Long auctionSessionId;
    /**
     * 额外数据
     */
    private String extendData;
}
